<?php
/**
 * Withdraw.php
 *
 * @copyright  2023 opencart.cn - All Rights Reserved
 * @link       http://www.guangdawangluo.com
 * @author     TL <mengwb@opencart.cn>
 * @created    2023-06-01 19:26:22
 * @modified   2023-06-01 19:26:22
 */

namespace Beike\Seller\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Withdraw extends Base
{
    use HasFactory;

    protected $table = 'seller_withdraws';

    protected $fillable = ['seller_id', 'paid_at', 'bank', 'bank_account', 'bank_name', 'currency_code', 'amount', 'description', 'status'];

    public function seller(): BelongsTo
    {
        return $this->belongsTo(Seller::class, 'seller_id');
    }
}
